﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DDD RID: 3549
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RechargeSuccNotify : IMessage<RechargeSuccNotify>, IMessage, IEquatable<RechargeSuccNotify>, IDeepCloneable<RechargeSuccNotify>, IBufferMessage
	{
		// Token: 0x17002D05 RID: 11525
		// (get) Token: 0x06009F2E RID: 40750 RVA: 0x001A9827 File Offset: 0x001A7A27
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RechargeSuccNotify> Parser
		{
			get
			{
				return RechargeSuccNotify._parser;
			}
		}

		// Token: 0x17002D06 RID: 11526
		// (get) Token: 0x06009F2F RID: 40751 RVA: 0x001A982E File Offset: 0x001A7A2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RechargeSuccNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D07 RID: 11527
		// (get) Token: 0x06009F30 RID: 40752 RVA: 0x001A9840 File Offset: 0x001A7A40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RechargeSuccNotify.Descriptor;
			}
		}

		// Token: 0x06009F31 RID: 40753 RVA: 0x001A9847 File Offset: 0x001A7A47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RechargeSuccNotify()
		{
		}

		// Token: 0x06009F32 RID: 40754 RVA: 0x001A9868 File Offset: 0x001A7A68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RechargeSuccNotify(RechargeSuccNotify other) : this()
		{
			this.monthCardOutdateTime_ = other.monthCardOutdateTime_;
			this.channelOrderNo_ = other.channelOrderNo_;
			this.itemList_ = ((other.itemList_ != null) ? other.itemList_.Clone() : null);
			this.productId_ = other.productId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009F33 RID: 40755 RVA: 0x001A98CC File Offset: 0x001A7ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RechargeSuccNotify Clone()
		{
			return new RechargeSuccNotify(this);
		}

		// Token: 0x17002D08 RID: 11528
		// (get) Token: 0x06009F34 RID: 40756 RVA: 0x001A98D4 File Offset: 0x001A7AD4
		// (set) Token: 0x06009F35 RID: 40757 RVA: 0x001A98DC File Offset: 0x001A7ADC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong MonthCardOutdateTime
		{
			get
			{
				return this.monthCardOutdateTime_;
			}
			set
			{
				this.monthCardOutdateTime_ = value;
			}
		}

		// Token: 0x17002D09 RID: 11529
		// (get) Token: 0x06009F36 RID: 40758 RVA: 0x001A98E5 File Offset: 0x001A7AE5
		// (set) Token: 0x06009F37 RID: 40759 RVA: 0x001A98ED File Offset: 0x001A7AED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string ChannelOrderNo
		{
			get
			{
				return this.channelOrderNo_;
			}
			set
			{
				this.channelOrderNo_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002D0A RID: 11530
		// (get) Token: 0x06009F38 RID: 40760 RVA: 0x001A9900 File Offset: 0x001A7B00
		// (set) Token: 0x06009F39 RID: 40761 RVA: 0x001A9908 File Offset: 0x001A7B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ItemList
		{
			get
			{
				return this.itemList_;
			}
			set
			{
				this.itemList_ = value;
			}
		}

		// Token: 0x17002D0B RID: 11531
		// (get) Token: 0x06009F3A RID: 40762 RVA: 0x001A9911 File Offset: 0x001A7B11
		// (set) Token: 0x06009F3B RID: 40763 RVA: 0x001A9919 File Offset: 0x001A7B19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string ProductId
		{
			get
			{
				return this.productId_;
			}
			set
			{
				this.productId_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x06009F3C RID: 40764 RVA: 0x001A992C File Offset: 0x001A7B2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RechargeSuccNotify);
		}

		// Token: 0x06009F3D RID: 40765 RVA: 0x001A993C File Offset: 0x001A7B3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RechargeSuccNotify other)
		{
			return other != null && (other == this || (this.MonthCardOutdateTime == other.MonthCardOutdateTime && !(this.ChannelOrderNo != other.ChannelOrderNo) && object.Equals(this.ItemList, other.ItemList) && !(this.ProductId != other.ProductId) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009F3E RID: 40766 RVA: 0x001A99B4 File Offset: 0x001A7BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MonthCardOutdateTime != 0UL)
			{
				num ^= this.MonthCardOutdateTime.GetHashCode();
			}
			if (this.ChannelOrderNo.Length != 0)
			{
				num ^= this.ChannelOrderNo.GetHashCode();
			}
			if (this.itemList_ != null)
			{
				num ^= this.ItemList.GetHashCode();
			}
			if (this.ProductId.Length != 0)
			{
				num ^= this.ProductId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009F3F RID: 40767 RVA: 0x001A9A3F File Offset: 0x001A7C3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009F40 RID: 40768 RVA: 0x001A9A47 File Offset: 0x001A7C47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009F41 RID: 40769 RVA: 0x001A9A50 File Offset: 0x001A7C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChannelOrderNo.Length != 0)
			{
				output.WriteRawTag(18);
				output.WriteString(this.ChannelOrderNo);
			}
			if (this.MonthCardOutdateTime != 0UL)
			{
				output.WriteRawTag(32);
				output.WriteUInt64(this.MonthCardOutdateTime);
			}
			if (this.itemList_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.ItemList);
			}
			if (this.ProductId.Length != 0)
			{
				output.WriteRawTag(122);
				output.WriteString(this.ProductId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009F42 RID: 40770 RVA: 0x001A9AEC File Offset: 0x001A7CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MonthCardOutdateTime != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.MonthCardOutdateTime);
			}
			if (this.ChannelOrderNo.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.ChannelOrderNo);
			}
			if (this.itemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ItemList);
			}
			if (this.ProductId.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.ProductId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009F43 RID: 40771 RVA: 0x001A9B7C File Offset: 0x001A7D7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RechargeSuccNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MonthCardOutdateTime != 0UL)
			{
				this.MonthCardOutdateTime = other.MonthCardOutdateTime;
			}
			if (other.ChannelOrderNo.Length != 0)
			{
				this.ChannelOrderNo = other.ChannelOrderNo;
			}
			if (other.itemList_ != null)
			{
				if (this.itemList_ == null)
				{
					this.ItemList = new ItemList();
				}
				this.ItemList.MergeFrom(other.ItemList);
			}
			if (other.ProductId.Length != 0)
			{
				this.ProductId = other.ProductId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009F44 RID: 40772 RVA: 0x001A9C16 File Offset: 0x001A7E16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009F45 RID: 40773 RVA: 0x001A9C20 File Offset: 0x001A7E20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 18U)
					{
						this.ChannelOrderNo = input.ReadString();
						continue;
					}
					if (num == 32U)
					{
						this.MonthCardOutdateTime = input.ReadUInt64();
						continue;
					}
				}
				else
				{
					if (num == 74U)
					{
						if (this.itemList_ == null)
						{
							this.ItemList = new ItemList();
						}
						input.ReadMessage(this.ItemList);
						continue;
					}
					if (num == 122U)
					{
						this.ProductId = input.ReadString();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003D64 RID: 15716
		private static readonly MessageParser<RechargeSuccNotify> _parser = new MessageParser<RechargeSuccNotify>(() => new RechargeSuccNotify());

		// Token: 0x04003D65 RID: 15717
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D66 RID: 15718
		public const int MonthCardOutdateTimeFieldNumber = 4;

		// Token: 0x04003D67 RID: 15719
		private ulong monthCardOutdateTime_;

		// Token: 0x04003D68 RID: 15720
		public const int ChannelOrderNoFieldNumber = 2;

		// Token: 0x04003D69 RID: 15721
		private string channelOrderNo_ = "";

		// Token: 0x04003D6A RID: 15722
		public const int ItemListFieldNumber = 9;

		// Token: 0x04003D6B RID: 15723
		private ItemList itemList_;

		// Token: 0x04003D6C RID: 15724
		public const int ProductIdFieldNumber = 15;

		// Token: 0x04003D6D RID: 15725
		private string productId_ = "";
	}
}
